package com.wuyou.single.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author wuyou
 * @since 2024-07-24 16:01:20
 */
@TableName("sys_department")
@ApiModel(value = "SysDepartment对象", description = "部门表")
public class SysDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("部门名称")
    private String departmentName;

    @ApiModelProperty("状态")
    private Integer departmentStatus;

    @ApiModelProperty("部门描述")
    private String departmentDesc;

    @ApiModelProperty("部门职责")
    private String departmentJob;

    @ApiModelProperty("父级部门id")
    private Long parentId;

    @ApiModelProperty("父级部门名称")
    private String parentName;

    @ApiModelProperty("根级id")
    private Long rootId;

    @ApiModelProperty("根级名称")
    private String rootName;

    @ApiModelProperty("负责人id")
    private Long leaderId;

    @ApiModelProperty("负责人名称")
    private String leaderName;

    @ApiModelProperty("创建人id")
    private Long creatorId;

    @ApiModelProperty("创建人名称")
    private String creatorName;

    @ApiModelProperty("更新人id")
    private Long updateById;

    @ApiModelProperty("更新人名称")
    private String updateByName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("删除标记(0-未删除, 1-已删除)")
    private Boolean deleteFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public Integer getDepartmentStatus() {
        return departmentStatus;
    }

    public void setDepartmentStatus(Integer departmentStatus) {
        this.departmentStatus = departmentStatus;
    }

    public String getDepartmentDesc() {
        return departmentDesc;
    }

    public void setDepartmentDesc(String departmentDesc) {
        this.departmentDesc = departmentDesc;
    }

    public String getDepartmentJob() {
        return departmentJob;
    }

    public void setDepartmentJob(String departmentJob) {
        this.departmentJob = departmentJob;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Long getRootId() {
        return rootId;
    }

    public void setRootId(Long rootId) {
        this.rootId = rootId;
    }

    public String getRootName() {
        return rootName;
    }

    public void setRootName(String rootName) {
        this.rootName = rootName;
    }

    public Long getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Long leaderId) {
        this.leaderId = leaderId;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getUpdateById() {
        return updateById;
    }

    public void setUpdateById(Long updateById) {
        this.updateById = updateById;
    }

    public String getUpdateByName() {
        return updateByName;
    }

    public void setUpdateByName(String updateByName) {
        this.updateByName = updateByName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "SysDepartment{" +
        "id = " + id +
        ", departmentName = " + departmentName +
        ", departmentStatus = " + departmentStatus +
        ", departmentDesc = " + departmentDesc +
        ", departmentJob = " + departmentJob +
        ", parentId = " + parentId +
        ", parentName = " + parentName +
        ", rootId = " + rootId +
        ", rootName = " + rootName +
        ", leaderId = " + leaderId +
        ", leaderName = " + leaderName +
        ", creatorId = " + creatorId +
        ", creatorName = " + creatorName +
        ", updateById = " + updateById +
        ", updateByName = " + updateByName +
        ", createTime = " + createTime +
        ", deleteFlag = " + deleteFlag +
        "}";
    }
}
